package com.niiwoo.civet.scheduler.trigger;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.alibaba.dubbo.config.annotation.Reference;
import com.niiwoo.civet.trade.service.project.ProjectDubboService;

import lombok.extern.slf4j.Slf4j;

/**
 * 融360标的超时未确认 
 *
 * @author: kevin.jia
 * @version 1.0.0
 */
@Slf4j
@Component
public class R360TimeoutUnconfirmedFlowJobTrigger {
    @Reference(version = "1.0.0")
    private ProjectDubboService projectDubboService;
    
    @Scheduled(cron = "${r360.timeout-unconfirmed-flow}")
    public void r360TimeoutUnconfirmedFlow(){
        log.info("==========R360TimeoutUnconfirmedFlowJob invoke start ==========");
        projectDubboService.r360TimeoutUnconfirmedFlow();
        log.info("==========R360TimeoutUnconfirmedFlowJob invoke end==========");
    }
}